<?php
class Logout extends CI_Controller
{
	function __construct() {
		parent::__construct ();
		$this->load->helper('url');
		$this->session->sess_destroy();
	}
	
	function index()
	{
		$this->session->sess_destroy();
		redirect(base_url().'admin/index', 'location');
	}
}